#include "util_type.h"

namespace util {
CNumber& CNumber::operator=(const CReal &b){
    m_value=b.Value();
    return *this;
}

CNumber CNumber::operator+(const CReal &b){
    CNumber _o(m_value+b.Value()); 
    return _o;
}

CNumber CNumber::operator-(const CReal &b){
    CNumber _o(m_value-(int64_t)b.Value());
    return _o;
}

CNumber CNumber::operator*(const CReal &b){
    CNumber _o(m_value*b.Value());
    return _o;
}

CNumber CNumber::operator/(const CReal &b){
    CNumber _o(m_value/(int64_t)b.Value());
    return _o;
}

}